package com.tubang.logistics.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 省份表
 * </p>
 *
 * @author wsl
 * @since 2017-12-10
 */
@TableName("tb_area")
public class AreaEntity extends Model<AreaEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 区域编号
     */
	private String id;
    /**
     * 省份名称
     */
	private String name;
    /**
     * 父区域id编号
     */
	private String pid;


	public String getId() {
		return id;
	}

	public AreaEntity setId(String id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public AreaEntity setName(String name) {
		this.name = name;
		return this;
	}

	public String getPid() {
		return pid;
	}

	public AreaEntity setPid(String pid) {
		this.pid = pid;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Area{" +
			"id=" + id +
			", name=" + name +
			", pid=" + pid +
			"}";
	}
}
